package cn.ycl.system.api.syslog.feign;


import cn.ycl.system.api.syslog.domain.SysLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author yuanchangliang
 * @date 2022-06-20 15:42
 **/
@FeignClient(contextId = "remoteSysLogService",value = "ycl-service-system",fallbackFactory = RemoteSysLogServiceFallback.class)
public interface RemoteSysLogService {
    /**
     * 插入日志
     */
    @RequestMapping(value = "sysLog/insert", method = RequestMethod.POST)
    SysLog insert(@RequestBody SysLog sysLog);
}
